#include <stdio.h>
#include <math.h>
#include <time.h>
#include <stdlib.h>

#define N 6

int main()
{
	double score[N], sd=0,sum=0, ave,max=0,min=100;
	int n1,n2, i=0, j,nc=0,nx=0,nn=0,ns=0,num;

	char str[512];

/*	i=0;
	do{
		scanf("%c", &str[i]);
		i++;
	}while(str[i-1]!=10);
*/
/*
	i=0;
	while(scanf("%c", &str[i]), str[i]!=10)
		i++;
	num=i;

	for(j=0;j<i;j++)
	{
		if(str[j]>='A' && str[j]<='Z')
			nc++;
		if(str[j]>='a' && str[j]<='z')
			ns++;
		if(str[j]>='0' && str[j]<='9')
			nn++;
	}
	nx = i-nc-ns-nn;

	printf("nc=%d ns=%d nn=%d nx=%d\n", nc, ns, nn,nx);
	

*/
	n1=n2=0;

	for(i=0;i<N;i++)
	{
		do{
			printf("%d:", i+1);
			scanf("%lf", &score[i]);
		}while(score[i]<0 || score[i]>100);

		sum+=score[i];
		if(max<score[i])max=score[i];
		if(min>score[i])min=score[i];
	}
	ave = sum/N;

	for(i=0;i<N;i++)
	{
		sd += (score[i]-ave)*(score[i]-ave);
	}
	sd /= N;
	

	for(i=0;i<N;i++)
	{
		if(score[i] >=ave)
			n1++;
	}

	n2=N-n1;

	printf("ave=%.2lf n1=%d n2=%d\n", ave, n1, n2);
	printf("min=%.2lf max=%.2lf sd=%.2lf\n", min, max,sd);

	return 0;
}